package com.own.business.log.login.persistence.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BaseBean;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * LogLogin
 *
 * @author chenxueli
 * @date 2023-08-08 17:14:57
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_log_login")
public class LogLogin extends BaseBean implements Serializable {

    @Schema(title = "登录账号")
    private String loginAccount;

    @Schema(title = "登录类型")
    private String loginType;

    @Schema(title = "登录编码")
    private String loginCode;

    @Schema(title = "用户id")
    private Long fkUserId;

    @Schema(title = "用户名")
    private String userName;

    @Schema(title = "ip地址")
    private String ip;

    @Schema(title = "客户端")
    private String client;

    @Schema(title = "token")
    private String token;

    @Schema(title = "操作内容")
    private String extra;

    @Schema(title = "登录状态 1=成功 2=失败")
    private Integer status;

    @Schema(title = "链路id")
    private String traceId;

}
